﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System.ComponentModel;

namespace DX.DbStorage.EF
{
    public abstract class EntityTypeConfig<TEntity> : IEntityTypeConfiguration<TEntity> where TEntity : class
    {
        void IEntityTypeConfiguration<TEntity>.Configure(EntityTypeBuilder<TEntity> builder)
        {
            OnConfigure(builder);

        }

        protected abstract void OnConfigure(EntityTypeBuilder<TEntity> builder);


    }


}
